export default {
    props: {
        showattr: {
            default: true,
        },
    },
    data: {
        title: 'World',
        upper: false,
        digit: false,
        expression: "",
    },

    handleShift() {
        this.upper = !this.upper;
    },

    handleType() {
        this.digit = !this.digit;
    },

    handleInput(value) {
//        console.log("handle input value:"+value);
        this.expression = value;
//        console.log("expression:"+this.expression);
        this.$emit('eventKeyinput', {text: this.expression});
    },

    handleNum(value) {
//        this.expression += value;
        this.expression = value;
        this.$emit('eventKeyinput', {text: this.expression});
    },

    handleBackspace(value) {
//        this.expression = this.expression.slice(0, -1);
        this.$emit('eventKeyback');
    },

    handleHide(value) {
//        this.hideBoard = true;

        this.$emit('eventHideboard', {visibility: false});
    },
}
